/*
 * Copyright (C) 2017 Baidu, Inc. All Rights Reserved.
 */
package com.incar.chuxing.utils.ocrlicense;

import android.content.Context;

import com.incar.chuxing.utils.Logger;
import com.incar.chuxing.utils.SDCardUtils;

import java.io.File;

public class FileUtil {
    public static File getSaveFile(Context context) {
        File file = new File(SDCardUtils.getSDCardPrivateCacheDir(context) + File.separator + "picture.jpg");
        Logger.d("PATH", context.getFilesDir().getAbsolutePath() + "");
        return file;
    }

    public static File getSaveZiPaiFile(Context context) {
        File file = new File(SDCardUtils.getSDCardPrivateCacheDir(context) + File.separator + "zipai.jpg");
        Logger.d("PATH", context.getFilesDir().getAbsolutePath() + "");
        return file;
    }

    public static File getSaveIdCardFile(Context context) {
        File file = new File(SDCardUtils.getSDCardPrivateCacheDir(context) + File.separator + "idcard.jpg");
        Logger.d("PATH", context.getFilesDir().getAbsolutePath() + "");
        return file;
    }

    public static File getSaveJiaZhaoFile(Context context) {
        File file = new File(SDCardUtils.getSDCardPrivateCacheDir(context) + File.separator + "jiaozhao.jpg");
        Logger.d("PATH", context.getFilesDir().getAbsolutePath() + "");
        return file;
    }
}
